
<div class="box">
	<div class="hd">上传图片 &darr;</div>
	<div class="bd">
        <?php
        $form_url= site_url("admin/upPhotos_manag/add_photo");
        echo form_open_multipart($form_url,array('id' => 'uploadPhotos'));?>
        <table class="formtable">
            <tr>
                <th>所属相册:</th>
                <td>
                    <select name="album_id">
                    <?php 
                //echo form_dropdown('category_id', array('1'=>'淘宝','2'=>'婚礼'), 1); 
                
                foreach($album_type_array as $key=>$val){
                    
 echo " <option value =\"{$val["id"]}\">{$val["title"]}</option>";
                    
                    
                }
                
                
                ?>
                      </select>
                    </td>
            </tr>
            <?php
            $un = 10;
			for($i=1;$i<=$un;$i++) :
                echo '<tr>';
                echo '<th>图片'.$i.':</th>';
                echo '<td>'.form_upload(array('name'=>'photo'.$i,'size'=>'60')).'</td>';
                echo '</tr>';
            endfor;	
            ?> 
            <tr>
                <th><?php echo form_hidden('uploadNum',$un); ?></th>
                <td><input type="submit" name="upfilesubmit" id="upfilesubmit" value="点击开始上传" /></td>
            </tr>
        </table>
        <?php echo form_close();?>
    </div>
</div>



<div class="box">
	<div class="hd">创建一个相册 &darr;<span>album的类型0为相册；1为视频；2为slider;3为logo</span></div>
	<div class="bd">
            <form action="<?php 
            echo site_url("admin/upPhotos_manag/add_album");
            
            ?>" method="post" enctype="multipart/form-data">
        	<table class="formtable">
            	<tr>
                	<th>相册名称</th>
                    <td><input type="text" size="30" name="title" /></td>
                </tr>
                <tr>
                	<th>相册封面</th>
                    <td><input type="file" size="30" name="cover" /></td>
                </tr>
                <tr>
                	<th>相册描述</th>
                    <td>
                    <textarea rows="5" cols="70" name="desc" id="desc"></textarea></td>
                </tr>
                <tr>
                	<th>顺序</th>
                    <td><input type="text" size="5" name="order" /></td>
                </tr>
                <tr>
                	<th><input name="album_type" type="hidden" value="0"></th>
                    <td><input type="submit" name="add_submit" value="创建相册" /></td>
                </tr>
            </table>
        </form>
    </div>
</div>


